(prompt "Select which TCP/IP-stack to install for")
(help "Short: Which package do you use to connect to internet with?")
(choices "Miami"
"AmiTCP"
)
(default defc)
)
)
(if inst
(
; make sure "rx" is available
(if (not (exists "sys:rexxc/rx"))
(abort "This installer script needs to use the ARexx utility rx.\n\nPlease make sure the rx utility is installed in sys:rexxc and try to install again."))
; make sure we have the library that EditTextFile.rexx needs
(if (not (exists "libs:rexxsupport.library"))
(abort "This installer script needs rexxsupport.library in LIBS: to run.\n\nPlease install this library and then run this Installer script again."))
; try and make sure ARexx is running
(run "rexxmast" (safe))
)
)
; if PowerWEB is already in /serv, probably they've already installed before
(prompt "If you plan to be running PowerWEB in conjunction with AmiTCP, the line:\n\nPowerWEB 2956/tcp\n\nneeds to be present in your amitcp:db/services file. Do you wish me to update the file? (Note: PowerWEB will not receive connections if this line is not precisely as shown above!)")
(help "The inclusion of this line into amitcp:db/services is done by an ARexx script which is smart enough to correctly edit previous installations. Also it will make a backup (to amitcp:db/services.bak) before writing.")
(confirm)
)
(if (not (exists "t:edit_text_succeeded"))
(message "For some reason, the config file editing script (EditText.rexx) could not complete successfully. You'll need to edit your amitcp:db/services file yourself. Look in the 'Installation' section of the PowerWEB Guide for instructions."))
(prompt "\nAlso, the line:\n\nPowerWEB stream tcp nowait root amitcp:serv/PowerWEB\n\nneeds to be present in your amitcp:db/inetd.conf file. Do you wish me to update that file?\n(Note: PowerWEB will not receive connections if this line is not precisely as shown above!)")
(help "The inclusion of this line into amitcp:db/inetd.conf is done by an ARexx script which is smart enough to correctly edit previous installations. Also it will make a backup (to amitcp:db/inetd.conf.bak) before writing.")
(confirm)
)
(if (not (exists "t:edit_text_succeeded"))
(message "For some reason, the config file editing script (EditText.rexx) could not complete successfully. You'll need to edit your amitcp:db/inetd.conf file yourself. Look in the 'Installation' section of the PowerWEB Guide for instructions."))